<!DOCTYPE html>
<html>
<head>
<title>意外险享受管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="姓名">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="用工单位名称">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.treatmentHospital" @keyup.enter="query" placeholder="就诊医院">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.telephone" @keyup.enter="query" placeholder="联系电话">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("accidentinsurancemanagement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("accidentinsurancemanagement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("accidentinsurancemanagement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("accidentinsurancemanagement:bbqr"))
			<a class="btn btn-primary" @click="bbqr"><i class="fa fa-pencil-square-o"></i>&nbsp;资料确认</a>
			#end
			#if($shiro.hasPermission("accidentinsurancemanagement:pjqr"))
			<a class="btn btn-primary" @click="pjqr"><i class="fa fa-pencil-square-o"></i>&nbsp;回单确认</a>
			#end
			#if($shiro.hasPermission("accidentinsurancemanagement:hdqr"))
			<a class="btn btn-primary" @click="hdqr"><i class="fa fa-pencil-square-o"></i>&nbsp;到账确认</a>
			#end
			#if($shiro.hasPermission("accidentinsurancemanagement:sdqr"))
			<a class="btn btn-primary" @click="sdqr"><i class="fa fa-pencil-square-o"></i>&nbsp;发放确认</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
</div>
    
    <div v-show="!showList&&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly"  @click="popPage"  v-model="accidentInsuranceManagement.name" placeholder="请选择"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="accidentInsuranceManagement.idno"  readonly="readonly" placeholder="身份证号"/>
			    </div>
			</div>
						<!--			<div class="form-group">
			   	<div class="col-sm-2 control-label">用工单位编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="accidentInsuranceManagement.companyid" placeholder="用工单位编号"/>
			    </div>
			</div>
					-->				<div class="form-group">
			   	<div class="col-sm-2 control-label">用工单位名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="accidentInsuranceManagement.company" readonly="readonly" placeholder="用工单位名称"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">事故发生日期</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" id="accidentDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"   v-model="accidentInsuranceManagement.accidentDate" placeholder="请选择日期"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">就诊方式</div>
			   	<div class="col-sm-10">

					<select v-model="accidentInsuranceManagement.treatmentMethods" class="form-control">
						<option v-for="treatmentMethods in dictList1" :value="treatmentMethods.value">{{treatmentMethods.label}}</option>
					</select>
<!--
                                      <input type="text" class="form-control" v-model="accidentInsuranceManagement.treatmentMethods" placeholder="就诊方式"/>
-->
                                    </div>
                                </div>
                                                        <div class="form-group">
                                       <div class="col-sm-2 control-label">就诊医院</div>
                                       <div class="col-sm-10">
                                      <input type="text" class="form-control" v-model="accidentInsuranceManagement.treatmentHospital" placeholder="就诊医院"/>
                                    </div>
                                </div>

                                                <div class="form-group">
                                    <div class="col-sm-2 control-label"></div>
                                    <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                                    &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
                                </div>
                            </form>
                        </div>
                    <div v-show="showtable" class="panel panel-default">
                        <div class="panel-heading">{{title}}</div>
                        <form class="form-horizontal">

                            <div v-show="showtable1" class="form-group">
                                <div class="col-sm-2 control-label">资料提交日期</div>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" v-model="accidentInsuranceManagement.dataSubmission"
                                           id="dataSubmission" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"  placeholder="资料提交"/>
                                </div>
                            </div>
                            <div v-show="showtable2" class="form-group">
                                <div class="col-sm-2 control-label">类别</div>
                                <div class="col-sm-10">
									<select v-model="accidentInsuranceManagement.type" class="form-control">
										<option v-for="type in dictList2" :value="type.value">{{type.label}}</option>
									</select>
<!--
                                    <input type="text" class="form-control" v-model="accidentInsuranceManagement.type" placeholder="类别"/>
-->
                                </div>
                            </div>
                            <div v-show="showtable2" class="form-group">
                                <div class="col-sm-2 control-label">赔付金额</div>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" v-model="accidentInsuranceManagement.claimAmount" placeholder="赔付金额"/>
                                </div>
                            </div>
                            <div v-show="showtable4" class="form-group">
                                <div class="col-sm-2 control-label">发放日期</div>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" v-model="accidentInsuranceManagement.issueDate"
                                           id="issueDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly" placeholder="发放日期"/>
                                </div>
                            </div>
                            <div v-show="showtable3" class="form-group">
                                <div class="col-sm-2 control-label">到账日期</div>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" v-model="accidentInsuranceManagement.arrivalDate"
                                           id="arrivalDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly" placeholder="到账日期"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-2 control-label"></div>
                                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
                            </div>
                        </form>
                    </div>
                    </div>


                    <!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>

<script src="${rc.contextPath}/js/hr/accidentinsurancemanagement.js?_${date.systemTime}"></script>
</body>
</html>